/*
2021-8-10
https://www.acwing.com/problem/content/3802/
*/
#include<cstring>
#include<iostream>
#include<algorithm>

using namespace std;

int main()
{
    int T;
    cin>>T;
    while(T--)
    {
        int a,b;
        cin>>a>>b;
        int cnt=1;
        for(;a>=0 && b>=0;)
        {
            a-=cnt;
            cnt++;
            b-=cnt;
            cnt++;
        }
        if(a<0) puts("Vladik");
        else puts("Valera");
    }
    return 0;
}
